#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/3/22 18:00
# @Author  : 柳晓飞
# @Site    : 
# @File    : config.py
# @Software: PyCharm
import yaml
import sys,os
class Config():
    def __init__(self):
        data = self.load()
        print data

    def store(self,data):
        with open('config.json', 'w') as json_file:
            json_file.write(yaml.dumps(data))

    def load(self):
        print sys.path[0]
        # with open('jjserver/config/config.json') as json_file:
        #     data = yaml.load(json_file)
        #     return data